import React, { PureComponent } from 'react';
import { connect, Link } from 'dva';

import DescriptionList from 'components/DescriptionList';

const { Description } = DescriptionList;

@connect(({ risk, apply }) => ({
  risk,
  apply,
}))
export default class ApplyOrderDisplayer extends PureComponent {
  render() {
    const { apply: { signContractDetails, applyLoading, applyPage } } = this.props;
    return (
      <div>
        {signContractDetails && (
          <DescriptionList style={{ marginBottom: 32 }} col="2">
            <Description term="客户名称">{signContractDetails.custName}</Description>
            <Description term="证件号">{signContractDetails.idcard}</Description>
            <Description term="家庭住址">{signContractDetails.residDetail}</Description>
            <Description term="经销商">{signContractDetails.dealerName}</Description>
            <Description term="资产种类">
              {signContractDetails.assetType == 1 ? '新车' : '二手车'}
            </Description>
            <Description term="工作地址">{signContractDetails.dealerName}</Description>
            <Description term="所购车型">{signContractDetails.carType}</Description>
            <Description term="车价">{signContractDetails.dealerPrice}</Description>
            <Description term="分期数">{signContractDetails.loanDuration}</Description>
            <Description term="贷款金额">{signContractDetails.loanAmt}</Description>
          </DescriptionList>
        )}

        {/* <Divider style={{ marginBottom: 32 }} />
          <DescriptionList size="large" title="用户信息" style={{ marginBottom: 32 }}>
            <Description term="用户姓名">付小小</Description>
            <Description term="联系电话">18100000000</Description>
            <Description term="常用快递">菜鸟仓储</Description>
            <Description term="取货地址">浙江省杭州市西湖区万塘路18号</Description>
            <Description term="备注">无</Description>
          </DescriptionList> */}
      </div>
    );
  }
}
